﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FluentFTP.Model
{
    public class FtpItem
    {
        public string Name { get; set; }
        public string FullPath { get; set; }
        public FtpItemType Type
        {
            get
            {
                if (Name != null && Name.Contains(".")) return FtpItemType.File;
                return FtpItemType.Folder;
            }
        }

        public DateTime TimeStamp { get; set; }
        public long Size { get; set; }
    }
}
